#
# Be sure to run `pod lib lint JLLogin.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'JLLogin'
  s.version          = '0.1.12'
  s.summary          = '登录组件'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = '登录组件，提供登录控制器，个人信息等功能'

  s.homepage         = 'https://gitlab.jlpay.com'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'shimminZ' => '272110599@qq.com' }
  s.source           = { :git => 'https://gitlab.jlpay.com/access-services/common-components/ios-component.git',  :tag => "#{s.name}_v#{s.version}" }

  s.ios.deployment_target = '10.0'
  s.swift_version = '5.0'
  
  #s.source_files = 'JLLogin/JLLogin/Classes/**/*'
  
   s.resource_bundles = {
     'JLLogin' => ['JLLogin/JLLogin/Assets/*.xcassets']
   }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  
  s.dependency 'RxSwift', '~> 6.2.0'
  s.dependency 'RxCocoa', '~> 6.2.0'
  s.dependency 'SnapKit', '~> 5.0.1'
  s.dependency 'JLUIKit'
  s.dependency 'JLZFRouter'
  s.dependency 'YYText'
  s.dependency 'JLBase'
  s.dependency 'JLHudManage'
  s.dependency 'JLNetworkService'
  s.dependency 'IQKeyboardManager','~> 6.5.9'
  s.dependency 'JLUserDataModule'
   
   
   s.subspec 'Base' do |ss|
        ss.source_files = 'JLLogin/JLLogin/Classes/Base/**/*.{swift,h,m}'
    end
   
   s.subspec 'LoginModuleCtrs' do |ss|
       #ss.source_files = 'JLLogin/JLLogin/Classes/LoginModuleCtrs/*.{swift,h,m}'
       ss.dependency 'JLLogin/Base'
       ss.dependency 'JLLogin/LoginModuleUiTool'
       ss.dependency 'JLLogin/LoginMoudleInsideRoute'
       
       ss.subspec 'ViewModel' do |sss|
           sss.source_files = 'JLLogin/JLLogin/Classes/LoginModuleCtrs/ViewModel/**/*.{swift,h,m}'
        end
       
       ss.subspec 'Controller' do |sss|
           sss.source_files = 'JLLogin/JLLogin/Classes/LoginModuleCtrs/Controller/**/*.{swift,h,m}'
           sss.dependency 'JLLogin/LoginModuleCtrs/ViewModel'
        end
    end
   
   s.subspec 'LoginMoudleInsideRoute' do |ss|
       ss.source_files = 'JLLogin/JLLogin/Classes/LoginMoudleInsideRoute/**/*'
     end

   s.subspec 'LoginModuleRoute' do |ss|
       ss.source_files = 'JLLogin/JLLogin/Classes/LoginModuleRoute/**/*'
       ss.dependency 'JLLogin/LoginModuleCtrs'
     end
   
   s.subspec 'LoginModuleUiTool' do |ss|
       ss.source_files = 'JLLogin/JLLogin/Classes/LoginModuleUiTool/**/*'
     end

end
